package net.ewon.avatar.agent;

import java.io.File;

import org.apache.commons.lang3.StringUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.web.util.UriTemplate;

public class MyIT {

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void test() { 
		UriTemplate template = new UriTemplate("http://{host}:{port}/hotels/{hotel}/bookings/{booking}");
		System.out.println(template.expand("test",123,"1", "42"));
		String os = System.getProperties().getProperty("os.name");

		if(os.startsWith("win") || os.startsWith("Win")) {
			System.out.println("Windows");
		} 
		System.out.println(StringUtils.replace("AvatarAgent/1.0.0/net/ewon/avatar/agent/test1.xml", "/", File.separator));
	}

}
